﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Text();
            //books book = new books();
            //book.Id = 1;
            //book.Name = "我不知道";
            //book.Price = 100;
            //book.SayHI();
        }
        static void Text()
        {
            string[,] s = new string[9, 9];

            for (int i = 0; i < s.GetLength(0); i++)
            {
                for (int j = 0; j < s.GetLength(1); j++)
                {
                    s[i,j] = (i+1) + "*" + (j+1) + "=" + (i + 1) * (j + 1) + "\t";
                }
            }
            for (int i = 0; i < s.GetLength(0); i++)
            {
                
                for (int j = 0; j < s.GetLength(1); j++)
                {
                    if (j<i)
                    {

                    Console.WriteL(s[i,j]);
                    }
                }
                Console.WriteLine();
            }
        }
        static void yyds()
        {
            int[,] arr = new int[10, 12];
            arr[0, 1] = 1;
            for (int i = 1; i < arr.GetLength(0); i++)
            {
                for (int j = 1; j < arr.GetLength(1); j++)
                {
                    arr[i, j] = arr[i - 1, j - 1] + arr[i - 1, j];
                }
            }
            for (int i = 0; i < arr.GetLength(0); i++)
            {
                for (int k = 0; k < arr.GetLength(1)-i; k++)
                {
                    Console.Write(" ");
                }
                for (int j = 0; j < arr.GetLength(1); j++)
                {
                    if (arr[i,j]!=0)
                    {
                        
                        Console.Write(arr[i,j]+" ");

                    }
                   

                }
                Console.WriteLine();
            }
        
        }
    }
}
